#include <iostream>
#include <string>
#include <vector>

using namespace std;

class person {
		friend ostream &operator << (ostream &cout, person &p);

	private:
		string m_Name;
		int m_Age;

	public:
		person(string inputName, int inputAge) {
			this->m_Name = inputName;
			this->m_Age = inputAge;
		}
};

ostream &operator << (ostream &cout, person &p) {
	cout << p.m_Name << " " << p.m_Age << endl;
	return cout;
}

void test01() {
	person p1("1", 1);
	person p2("2", 2);
	person p3("3", 3);
	person p4("4", 4);
	person p5("5", 5);

	vector<person> v;
	v.push_back(p1);
	v.push_back(p2);
	v.push_back(p3);
	v.push_back(p4);
	v.push_back(p5);

	for (vector<person>::iterator pcur = v.begin(); pcur != v.end(); pcur++) {
		cout << *pcur << endl;
	}
}

int main() {
	test01();
	return 0;
}